package api

import (
	"net/http"
)

func UploadWorkTimeHttp(w http.ResponseWriter, r *http.Request) error {
	r.ParseForm()
	account := r.FormValue("account")
	exe := r.FormValue("exe")
	timeInterval := r.FormValue("timeInterval")
	return UploadWorkTimeRealize(account, exe, timeInterval)
}

func GetWorkTimeHttp(w http.ResponseWriter, r *http.Request) error {
	return GetWorkTimeRealize()
}
